import request from '@/utils/request'

// 查询入库列表
export function listCome(query) {
  return request({
    url: '/system/come/list',
    method: 'get',
    params: query
  })
}

// 查询入库详细
export function getCome(warehouseComeId) {
  return request({
    url: '/system/come/' + warehouseComeId,
    method: 'get'
  })
}

// 新增入库
export function addCome(data) {
  return request({
    url: '/system/come',
    method: 'post',
    data: data
  })
}

// 修改入库
export function updateCome(data) {
  return request({
    url: '/system/come',
    method: 'put',
    data: data
  })
}

// 删除入库
export function delCome(warehouseComeId) {
  return request({
    url: '/system/come/' + warehouseComeId,
    method: 'delete'
  })
}
